package com.centaline.androidsalesblog.api.usercenter;

import com.centaline.androidsalesblog.api.UserCenterApi;
import com.centaline.androidsalesblog.constants.AppConstant;
import com.centaline.androidsalesblog.model.responseobject.UserRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 用户信息api
 * Created by Lihq on 2016/1/14.
 */
public class UserInfoApi extends UserCenterApi<UserRo> {

    private String phone;

    public UserInfoApi(Class<?> tag, Class<UserRo> aClass, IResponseListener<UserRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public void setParams() {
        putStringParams("UserId", AppConstant.UserId);
        putStringParams("Phone", phone);
    }


    @Override
    public String getPath() {
        return "UserInfoRequest";
    }
}
